/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"FF4C950E-57B1-49C2-8639-1AF20B995363"}
 */
function confirmar(event) {
	var $cant = foundset.getSize()
	var $dtl = forms.servicios_tbl.foundset
	for (var i = 1 ; i <= $cant ; i++)
	{
		var $rcd = foundset.getRecord(i)
		
		if ($rcd.marcado == 1)
		{
			$dtl.newRecord()
			$dtl.hotel_id 		= globals.gHotelId
			$dtl.servicio_id 	= $rcd.servicio_id
			$rcd.marcado = 0
		}
	}
	databaseManager.saveData()
	var $win = application.getWindow('NUEVO_SERVICIO')
	$win.hide()
	$win.destroy()
}
